using System;

namespace MinimalistFoodStreet.BackEnd.Infrastructure.Dtos.Response.Tables
{

    public class ResponseOrderDetailDto
    {
        public int id { get; set; }
        public int orderId { get; set; }
        public int goodId { get; set; }
        public int supplierId { get; set; }
        public int goodTypeId { get; set; }
        public string name { get; set; }
        public decimal price { get; set; }
        public string description { get; set; }
        public string photo { get; set; }
        public string specs { get; set; }
        public int isDirectly { get; set; }
        public DateTime birthday { get; set; }
        public int expiryDay { get; set; }
        public int isPromote { get; set; }
        public decimal? promotePrice { get; set; }
        public int count { get; set; }
        public decimal money { get; set; }
        public int? receivedCount { get; set; }
        public decimal receivedMoney { get; set; }
    }
    public class ResponseOrdersDto
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int id { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public string orderId { get; set; }

        /// <summary>
        /// 商家（引用business）
        /// </summary>
        public int businessId { get; set; }

        /// <summary>
        /// 供应商（引用suppliers）
        /// </summary>
        public int supplierId { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string supplierName { get; set; }

        /// <summary>
        /// 订单状态(0:未接单,1:已接单未发货,2:已发货,3:已收货,4:全部完成,5:部分完成,6:已拒收,-1:供应商拒绝接单(当前状态为未接单),-2:商家取消(当前状态为未发货或未接单),-3:供应商取消(当前状态为未发货))
        /// </summary>
        public int status { get; set; }

        /// <summary>
        /// 接单时间
        /// </summary>
        public DateTime? acceptOrderTime { get; set; }

        /// <summary>
        /// 接单时间字符串
        /// </summary>
        public string acceptOrderTimeStr { get; set; }
        /// <summary>
        /// 发货时间
        /// </summary>
        public DateTime? sendTime { get; set; }

        /// <summary>
        /// 发货时间字符串
        /// </summary>
        public string sendTimeStr { get; set; }
        /// <summary>
        /// 收货时间
        /// </summary>
        public DateTime? receiveTime { get; set; }

        /// <summary>
        /// 收货时间字符串
        /// </summary>
        public string receiveTimeStr { get; set; }
        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime? completeTime { get; set; }

        /// <summary>
        /// 完成时间字符串
        /// </summary>
        public string completeTimeStr { get; set; }

        /// <summary>
        /// 应该支付的金额
        /// </summary>
        public decimal shouldPayMoney { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string businessName { get; set; }
        /// <summary>
        /// 实付金额
        /// </summary>
        public decimal? payMoney { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime createtime { get; set; }

        /// <summary>
        /// 创建时间字符串
        /// </summary>
        public string createtimeStr { get; set; }

        /// <summary>
        /// 供应商备注
        /// </summary>
        public string supplierMarkup { get; set; }

        /// <summary>
        /// 商家备注
        /// </summary>
        public string businessMarkup { get; set; }

        /// <summary>
        /// 订单详情
        /// </summary>
        public List<ResponseOrderDetailDto> details { get; set; }
    }
}